home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / dist / bfd / configure.in < prev    next >
Encoding:
Text File  |  1992-03-29  |  4.4 KB  |  262 lines

  1. # This file is a shell script that supplies the information necessary
  2. # to tailor a template configure script into the configure script
  3. # appropriate for this directory.  For more information, check any
  4. # existing configure script.
  5.  
  6. configdirs="doc"
  7. srctrigger=libbfd.c
  8. srcname="BFD"
  9. target_dependent=true
  10.  
  11. # per-host:
  12.  
  13. case "${host_cpu}" in
  14.  
  15. rs6000)    my_host=rs6000
  16.     ;;
  17.  
  18. mips)
  19.     case "${host_vendor}" in
  20.     dec)    my_host=decstation ;;
  21.     sgi)
  22.         case "${host_os}" in
  23.         irix3)    my_host=irix3 ;;
  24.         irix4)    my_host=irix4 ;;
  25.         esac
  26.         ;;
  27.     esac
  28.     ;;
  29.  
  30. m88k)
  31.     case "${host_vendor}" in
  32.     motorola)
  33.         my_host=delta88 ;;
  34.     harris)
  35.         my_host=harris ;;
  36.     *)
  37.         case "${host_os}" in
  38.         dgux)    my_host=dgux ;;
  39.         esac
  40.         ;;
  41.     esac
  42.     ;;
  43.  
  44. m68k)
  45.     case "${host_vendor}" in
  46.     cbm)
  47.         case ${host_os} in
  48.         amigados)    my_host=amigados ;;
  49.         sysv4*)        my_host=amix ;;
  50.         esac
  51.         ;;
  52.     hp)    
  53.         case "${host_os}" in
  54.         hpux)    my_host=hp9000 ;;
  55.         bsd)    my_host=hp300bsd ;;
  56.         esac
  57.         ;;
  58.     sony)    my_host=news ;;
  59.     sun)    my_host=sun3 ;;
  60.     apollo*)
  61.         case "${host_os}" in
  62.         sysv*)    my_host=apollov68 ;;
  63.         esac
  64.         ;;
  65.     esac
  66.     ;;
  67.  
  68. i860)    my_host=stratus
  69.     ;;
  70.  
  71. i386)
  72.     case "${host_vendor}" in
  73.     *)
  74.         case "${host_os}" in
  75.         sysv4*)    my_host=i386v4 ;;
  76.         sysv* | scosysv*) my_host=i386v ;;
  77.         mach*)    my_host=i386mach ;;
  78.         msdos*)    my_host=dose ;;
  79.         esac
  80.         ;;
  81.     esac
  82.     ;;
  83.  
  84. sparc)
  85.     case "${host_os}" in
  86.     sunos64)    my_host=sparc-ll ;;
  87.     sysv4)        my_host=sysv4 ;;
  88.     sysv64)        my_host=sysv4-ll ;;
  89.     *)        my_host=sparc ;;
  90.     esac
  91.     ;;
  92.  
  93. romp)    my_host=rtbsd
  94.     ;;
  95.  
  96. a29k)    my_host=ultra3
  97.     ;;
  98.  
  99. tahoe)
  100.     my_host=tahoe
  101.     ;;
  102.  
  103. vax)
  104.     case "${host_os}" in
  105.     ultrix*) my_host=vaxult ;;
  106.     *) my_host=vaxbsd ;;
  107.     esac
  108.     ;;
  109. esac
  110.  
  111. # Set up to make a link between the host's include file and "sysdep.h".
  112. files="hosts/${my_host}.h"
  113. links="sysdep.h"
  114.  
  115. if [ ! -f ${srcdir}/${files} ] ; then
  116.     if [ -n "${my_host}" ] ; then
  117.         echo '***' No file ${srcdir}/${files}
  118.     fi
  119.     echo '***' ${srcname} does not support host ${host}
  120.     exit 1
  121. fi
  122.  
  123. host_makefile_frag=
  124. if [ -f ${srcdir}/config/${my_host}.mh ] ; then
  125.     host_makefile_frag=config/${my_host}.mh
  126. fi
  127.  
  128. # per-target:
  129.  
  130. case "${target_vendor}" in
  131. aout | coff | bout | elf) bfd_target=${target_cpu}-${target_vendor} ;;
  132. sony)        bfd_target=news ;;
  133. intel)        bfd_target=${target_cpu}-coff ;;    
  134. stratus | cbm | ncr)    bfd_target=${target_cpu}-elf ;;
  135.  
  136. unknown)
  137.     case "${target_os}" in
  138.     bsd) bfd_target=${target_cpu}-aout ;;
  139.     sysv4*) bfd_target=${target_cpu}-elf ;;
  140.     sysv* | scosysv*) bfd_target=${target_cpu}-coff ;;
  141.     none)    case "${target_cpu}" in
  142.         tahoe | vax)    bfd_target=${target_cpu} ;;
  143.         esac
  144.     esac
  145.     ;;
  146.  
  147. ibm)    my_host=rs6000
  148.     case "${target_cpu}" in
  149.     rs6000)    bfd_target=rs6000 ;;
  150.     esac
  151.     ;;
  152.  
  153. amd)
  154.     case "${target_os}"  in
  155.         ebmon) bfd_target=a29k-coff ;;
  156.         *) bfd_target=a29k-aout ;;
  157.     esac
  158.     ;;
  159.  
  160. hitachi)
  161.     case "${target_cpu}" in
  162.     h8300) bfd_target=h8300-coff ;;
  163.     *) echo "bad hitachi cpu" ;;
  164.     esac
  165.     ;;
  166.  
  167.  
  168. wrs)
  169.     case "${target_cpu}" in
  170.     i960) bfd_target=i960-bout ;;
  171.     m68k) bfd_target=m68k-aout ;;
  172.     esac
  173.     ;;
  174. sun)
  175.     case "${target_cpu}" in
  176.     m68k)    bfd_target=m68k-aout ;;
  177.     sparc)    case "${target_os}" in
  178.         sysv4)    bfd_target=sparc-elf ;;
  179.         *)    bfd_target=sparc-aout ;;
  180.         esac
  181.         ;;
  182.     esac
  183.     ;;
  184. dec)
  185.     case "${target_cpu}" in
  186.     mips) bfd_target=decstation ;;
  187.     vax) bfd_target=vax ;;
  188.     esac
  189.     ;;
  190. hp)
  191.     case "${target_cpu}" in
  192.     m68k)
  193.         case "${target_os}" in
  194.         hpux)    bfd_target=hp9000 ;;
  195.         bsd)    bfd_target=hp300bsd ;;
  196.         esac
  197.         ;;
  198.     esac
  199.     ;;
  200. sgi)
  201.     case "${target_cpu}" in
  202.     mips)
  203.         bfd_target=irix3 ;;
  204.     esac
  205.     ;;
  206. big)
  207.     case "${target_cpu}" in
  208.     mips)
  209.         bfd_target=irix3 ;;
  210.     esac
  211.     ;;
  212. tandem)
  213.     bfd_target=m68k-aout 
  214.     ;;
  215.  
  216. none|nyu|sco)
  217.     case "${target_cpu}" in
  218.     m68k) case "${target_os}" in
  219.         os68k) bfd_target=m68k-aout ;;
  220.           esac
  221.           ;;
  222.     i386) bfd_target=i386-coff ;;
  223.     a29k) case "${target_os}" in
  224.         aout) bfd_target=a29k-aout ;;
  225.         coff) bfd_target=a29k-coff ;;
  226.         sym1) bfd_target=a29k-coff ;;
  227.            esac
  228.            ;;
  229.     tahoe | vax) bfd_target=${target_cpu} ;;
  230.     esac
  231.     ;;
  232. harris)
  233.     case "${target_cpu}" in
  234.         m88k) bfd_target=m88k-coff ;;
  235.         esac
  236.     ;;
  237.  
  238. motorola)
  239.     case "${target_cpu}" in
  240.         m88k) bfd_target=m88k-coff ;;
  241.         esac
  242.     ;;
  243. *)
  244.     case "${target_cpu}" in
  245.     tahoe | vax) bfd_target=${target_cpu} ;;
  246.     esac
  247.     ;;
  248. esac
  249.  
  250. if [ ! -f ${srcdir}/config/${bfd_target}.mt ] ; then
  251.     if [ -n "${bfd_target}" ] ; then
  252.         echo '***' No file ${srcdir}/config/${bfd_target}.mt
  253.     fi
  254.     echo '***' BFD does not support target ${target}
  255.     echo '***' Look in bfd/configure.in for supported targets
  256.     exit 1
  257. fi
  258. target_makefile_frag=config/${bfd_target}.mt
  259.  
  260. # We don't do any links based on the target system, just very minor makefile
  261. # config.
  262.